import request from '@/utils/request'

// 查询食品留样记录列表
export function listRetained(query) {
  return request({
    url: '/process/foodRetained/list',
    method: 'get',
    params: query
  })
}

// 查询食品留样记录详细
export function getRetained(id) {
  return request({
    url: '/process/foodRetained/' + id,
    method: 'get'
  })
}

// 新增食品留样记录
export function addRetained(data) {
  return request({
    url: '/process/foodRetained',
    method: 'post',
    data: data
  })
}

// 修改食品留样记录
export function updateRetained(data) {
  return request({
    url: '/process/foodRetained',
    method: 'put',
    data: data
  })
}

// 删除食品留样记录
export function delRetained(id) {
  return request({
    url: '/process/foodRetained/' + id,
    method: 'delete'
  })
}
